Skip to content

[19.0][OU-IMP] crm: Add separator to phone and mobile concatenation#5763

Merged
pedrobaeza merged 1 commit into
OCA:19.0from
Tecnativa:19.0-ou-crm-mobile
Jul 10, 2026
Merged

[19.0][OU-IMP] crm: Add separator to phone and mobile concatenation#5763
pedrobaeza merged 1 commit into
OCA:19.0from
Tecnativa:19.0-ou-crm-mobile

Conversation

@christian-ramos-tecnativa

Copy link
Copy Markdown
Contributor

Depending on how the user wrote down the phone and mobile fields, after the migration the phone can get ambiguous. Added a separator to avoid it.

@Tecnativa
@pedrobaeza @eduezerouali-tecnativa

@OCA-git-bot OCA-git-bot added mod:openupgrade_scripts Module openupgrade_scripts series:19.0 labels Jun 29, 2026
@pedrobaeza pedrobaeza added this to the 19.0 milestone Jun 29, 2026

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you are here, please make a copy of the column first for preserving original information.

@christian-ramos-tecnativa

Copy link
Copy Markdown
Contributor Author

Do you mean creating an extra column like original_phone with the info in phone column?

@pedrobaeza

Copy link
Copy Markdown
Member

Use copy_columns method, and pass None to get an automatic backup column name.

@MiquelRForgeFlow MiquelRForgeFlow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comments as #5762. What about phone_validation module?

@pedrobaeza

Copy link
Copy Markdown
Member

phone_validation has nothing to do with this, as the formatting was already done.

@MiquelRForgeFlow

Copy link
Copy Markdown
Contributor

I meant that what we finally do in #5762, we have to it here too.

@pedrobaeza

Copy link
Copy Markdown
Member

Yes, but the problem you state with phone_validation in both PR is not a problem.

@christian-ramos-tecnativa

Copy link
Copy Markdown
Contributor Author

Added copy_columns, make sure concatenation is done when phone and mobile are different and changed separator to //

Comment thread openupgrade_scripts/scripts/crm/19.0.1.9/post-migration.py Outdated
@pedrobaeza pedrobaeza merged commit cb2657d into OCA:19.0 Jul 10, 2026
7 checks passed
@pedrobaeza pedrobaeza deleted the 19.0-ou-crm-mobile branch July 10, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants